package org.example.domain.query.report;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.domain.query.PageQuery;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@EqualsAndHashCode(callSuper=false)
@Data
@ApiModel(description = "调拨明细报表查询条件")
public class AllocateDepotQuery extends PageQuery {
    
    @ApiModelProperty("单据编号")
    private String number;
    
    @ApiModelProperty("条码/名称/规格/型号")
    private String name;
    
    @ApiModelProperty("单据范围时间")
    private Date createTime;
    
    @ApiModelProperty("单据范围时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endTime;
    
    @ApiModelProperty("调出仓库id")
    private Long depotId;
    
    @ApiModelProperty("调入仓库id")
    private Long anotherDepotId;
    
    @ApiModelProperty("备注")
    private String remark;
}
